package com.yequan.designpattern.monitor.code;

/**
 * @author yequan
 * @date 2019/12/10
 */
public class TestMonitor {

    public static void main(String[] args) {
        Programmer programmer = new Programmer();
        programmer.addListener(new PM());
        programmer.addListener(new Director());
        programmer.addListener(new Chief());
        programmer.updateCode();
    }

}
